Compound Lookup for Safari - installation (macOS)
=================================================

1. Unzip this archive and drag "Compound Lookup.app" into your Applications folder.
   It needs to stay there: Safari loads the extension from the app.

2. Open "Compound Lookup.app" once. A small window appears - that's all it does.
   It is signed and notarised by Apple, so it opens without a security warning.

3. In Safari: Settings > Extensions, and tick "Compound Lookup".

4. The first time you use it, Safari asks whether the extension may access websites.
   Allow it. It needs PubChem (pubchem.ncbi.nlm.nih.gov) and EMBL-EBI (www.ebi.ac.uk)
   to look compounds up, plus the page you're reading to show the result card.
   You can change this later under Settings > Extensions > Compound Lookup.


Using it
--------
Select a compound name on any web page, right-click, and choose

    Look up "..."  ->  PubChem
                       ChEMBL
                       ID lookup

PubChem and ChEMBL show the structure and the compound's identifier linked to its
record. ID lookup cross-references the drug across ChEMBL, DrugBank, PDB,
SureChEMBL and PubChem, and shows its InChIKey - click the key to copy it.

Dismiss the card with Escape, the x, or by clicking elsewhere.
To check it's working: select the word  aspirin  and look it up.


Things worth knowing
--------------------
- The only thing sent anywhere is the text you select, and only to the database
  you picked: PubChem (NIH), or ChEMBL and UniChem (both EMBL-EBI).
  Nothing is stored or sent anywhere else.

- Safari does not let extensions run on its own settings pages, the Extensions
  Gallery, or PDFs. Use a normal web page.

- To remove it: untick it in Settings > Extensions, then delete the app.
